<div class="row">
  <div class="span3 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>
  <div class="span8"> 
    <*if $statistics*>
    <div style="padding-top:15px;">
            <h5 class="span4"><*$statistics.0.classname*></h5>

        <button style="float:right;" type="button" class="btn btn-primary" onclick="window.location='/<*$controller*>/statistics/groupid/<*$statistics.0.groupid*>/schoolid/<*$statistics.0.schoolid*>'">返回</button>

<div class="page" style="clear:both; padding-bottom:10px; padding-top:2px; "><*$page*></div>
        <table class="table table-bordered table-hover" >
            <tr><!--<th>班级</th>--><th>时间</th><th>采用照片</th><th>学期vip</th><th>年vip</th><th>推荐</th><!--<th>获得积分</th>--><th>订购消耗</th><!--<th>剩余积分</th>--></tr>
            <*foreach from=$statistics item=item key=key*>
            <tr>
            	<!--<td><*$item.classname*></td>-->
            	<td><*$item.addtime|date_format:"%Y-%m-%d %H:%M"*></td>
                <td><*if $item.credit_type eq 'photo'*>+<*$item.credit*><*/if*></td>
                <td><*if $item.credit_type eq 'term'*>+<*$item.credit*><*/if*></td>
                <td><*if $item.credit_type eq 'year'*>+<*$item.credit*><*/if*></td>
                <td><*if $item.credit_type eq 'publicize'*>+<*$item.credit*><*/if*></td>
                <!--<td><*if $item.credit_type neq 'shopping'*>+<*$item.credit*><*/if*></td>-->
                <td style="color:#F00;"><*if $item.credit_type eq 'shopping'*>-<*$item.credit*><*/if*></td>
                <!--<td><*$item.credit - $item.credit_orders*></td></tr>-->
            <*/foreach*>
        </table>
<div class="page" style="clear:both; "><*$page*></div>
        
        <button style="float:right;" type="button" class="btn btn-primary" onclick="window.location='/<*$controller*>/statistics/groupid/<*$statistics.0.groupid*>/schoolid/<*$statistics.0.schoolid*>'">返回</button>
    </div> 
    
    <*else*>
    <div style="clear:both; margin-left:30px; padding-top:20px;">数据为空！</div>    
    <*/if*>

</div>

<script type="text/javascript">

function chooseit(adid)
{
   window.location='/<*$controller*>/statistics/groupid/'+adid;
}

function deleteit(adid)
{
  if(confirm("删除将不能恢复")){
   window.location='/<*$controller*>/delete/vid/'+adid;
  }
}

</script> 
